package dicegame;

import java.util.*;

/**
 * @author Morten Bormeth
 */
public class DiceGame {

    protected static Scanner sc = new Scanner(System.in);

    public static void main(String[] arg) {

        System.out.println("Try to throw the dice?"
                + "\n1.Throw it \n2.Naah wont throw it!");

        int dice = sc.nextInt();

        if (dice == 1) {
            int nr;
            nr = (int) (Math.random() * 6 + 1);

            System.out.println("The dice showed number " + nr);
        } else if (dice == 2) {

            System.out.println("Why are u even here?!");

        } else {
            System.exit(0);
        }
    }
}
